@model Campus.Entities.Grupo

@{
    ViewBag.Title = "Editar grupo";
}

@section Header{
<script src="@Url.Content("~/Scripts/jquery-1.7.2.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/bootstrap.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery-ui-1.8.11.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/master-detail.table.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Grupo.js")" type="text/javascript"></script>
    
<script src="../../Scripts/jquery-1.7.2.min.js" type="text/javascript"></script>

<script >
    $(document).ready(function () {
        
        $("#btnSubmit").one('click', function (event) {
            //event.preventDefault();
            //do something
            $(this).prop('disabled', true);
            document.forms[0].submit();
        });
    });
</script>
}






@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
           
    <fieldset class="form-horizontal">
        <legend>Editar Informacion del Grupo</legend>
        @Html.Partial("_CreateOrEdit", Model)
    </fieldset>
    
      
        
        @Html.HiddenFor(model => model.ActividadId)
        @Html.HiddenFor(model => model.GrupoId)
        <div class="form-search well">   
            <div class="form-group">
                <input type="button" id="btnSubmit"   class="btn btn-primary" value="Guardar" />
                @Html.ActionLink("Volver a la lista", "Index", new { id = ViewBag.IndexGrupoElegido}, new { @class = "btn" })
            </div>
        </div>
    

    
}
<div>   

    @Html.ActionLink("Volver a la lista", "Index", new { id = ViewBag.IndexGrupoElegido},new { @class = "btn" })
</div>


